package com.sushe.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.servlet.ModelAndView;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

@RestController
public class toLoginController {
    @RequestMapping(value = "/toLogin.action",method = RequestMethod.GET)
    public ModelAndView handleRequest2(HttpServletRequest request, HttpServletResponse response){
        ModelAndView mv1 = new ModelAndView("redirect:/login.jsp");
        return mv1;
    }

}
